
<template>
  <div class="app-page">
    <div class="header">
    </div>
    <div class="app-main">
      <router-view name="default"></router-view>
    </div>
    <div class="footer">
      <router-view name="footer"></router-view>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.app-page {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;

  .header,
  .footer {
    // height: 1rem;
  }

  .header {
    // background-color: skyblue;
    --van-nav-bar-height: 1rem
  }

  .main {
    flex: 1;
    overflow-y: auto;
    background-color: #f9f9f9;
  }
}
</style>
